import Vue from 'vue'
import App from './App.vue'

// 引入路由组件
import router from '@/router'

import TypeNav from '@/components/TypeNav'
import {reqCategoryList} from '@/api/index'

import store from './store/index'

// 注册全局组件
Vue.component(TypeNav.name,TypeNav)

Vue.config.productionTip = false

reqCategoryList()
new Vue({
  render: h => h(App),
  //下面代码作用:给项目添加路由功能,给全部VC实例身上拥有两个属性,$router|$route
  router,
  store
}).$mount('#app')
